import request from '@/utils/request'

// 获取频道下的文章列表
export const getChannelArticleList = (params) => {
  return request({
    url: 'articles',
    params
  })
}

// 获取所有的频道
export function getAllChannelList () {
  return request({
    url: 'channels'
  })
}
